MyModules.define('textH1',[],function(){
	class Child extends WidgetObject {
	    constructor() {
	        super(); // 调用父类构造函数
	        // 子类可以添加自己的属性或方法
	        this.name = '標題';
		    this.datas.name = this.name;
		    this.datas.value = {
				content:'',
				tag:'h1',
				class:'',
				class_id:'',
				style:''
			};
		    this.getHtml = function () {
				var content = '';
				var tag= this.datas.value['tag'] ? this.datas.value['tag'] : 'h1';
				if(this.datas.value['content']){
					content = this.datas.value['content'];
				}
				return "<"+tag+" class='wrap-widget textH1Widget' data-id='"+this.datas.id+"' data-original-title='"+this.datas.name+"' data-toggle='tooltip'>"+this.datas.value['content']+"</"+tag+">";
			};
			this.inputTemplate = function(id, value){
	            var str = '	'+widgetHtml.textInput('content', this.datas.value['content'], '内容')+'';
				str += '	'+widgetHtml.dropDownList('tag', this.datas.value['tag'], '标签', {'h1':'h1','h2':'h2','h3':'h3','h4':'h4','h5':'h5'})+'';
	            return str;
	        };
	    }
	}
	return new Child();
});